|
![](/i/fill.gif) |
Warp wrote:
>
> Bob Jamison <rja### [at] lincom-asg com> wrote:
> > #ifndef max
> > #define max(a,b) ( a > b ? a : b )
> > #endif
> > #ifndef min
> > #define min(a,b) ( a < b ? a : b )
> > #endif
>
> > This is easier than searching & prefacing all max
> > and min calls with std:: , eh? ;-)
>
> How is it easier than writing 'using namespace std;' instead?
>
> Besides, your solution is very bad. Do you know why?
>
Well, i'm no expert in c, but i guess
max(++x, y)
would cause problems.
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 15 Jul. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
![](/i/fill.gif) |